from django.contrib import admin
from django.urls import path, re_path, include
# from apps.api import views as apiviews
# from apps.app import appviews
# from apps.web import webviews
# from apps.product import proviews
# from apps.set import setviews
# from apps.bug import bugviews
from autotest import settings
from apps.mock import views as mockviews
from django.views.static import serve
# from apps.api.views import apis_manage
from apps.api.viewsapi import ApiListView, ApiTestView
from rest_framework_swagger.views import get_swagger_view
from apps.budget.viewsdoc import DocView

schema_view = get_swagger_view(title='Pastebin API')
urlpatterns = [
    re_path(r'^static/(?P<path>.*)$',
            serve, {'document_root': settings.STATIC_ROOT},
            name='static'),
    # path(r'admin/', admin.site.urls),
    re_path(r'mock/(.*?)/(.*)', mockviews.mockindex),
    path('budget', include('budget.urls')),
    path('', admin.site.urls),
    path('article/list/', ApiListView.as_view(), name='api-list'),
    re_path(r'do_interface_case/(.*?)$', ApiTestView.sendApi, name='api-test'),
    path('doc/bigdata/', DocView.bigdata),
    path('doc/auto/', DocView.autotest),
    path('doc/safe/', DocView.safetest),
    # path('doc', schema_view),


]
